//---------------------------------------------------------------------------

#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Dialogs.hpp>
extern "C" 
{
#include "qrspec.h"
#include "qrinput.h"
#include "mask.h"
#include "rscode.h"
#include "split.h"
#include "qrencode_inner.h"
}
//---------------------------------------------------------------------------
class TForm2 : public TForm
{
__published:	// IDE-managed Components
	TPanel *Panel1;
	TButton *Button1;
	TButton *Button2;
	TMemo *Memo1;
	TLabel *Label1;
	TSaveDialog *SaveDialog1;
	TButton *Button3;
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall Button2Click(TObject *Sender);
	void __fastcall Button3Click(TObject *Sender);
private:	// User declarations
	void __fastcall draw_QRcode(QRcode *qrcode, int ox, int oy);
	void __fastcall SaveAsImage();
	void __fastcall SaveImage();
public:		// User declarations
	__fastcall TForm2(TComponent* Owner);
	String m_strSavePath;

	HDC hdcWindow;
	int m_nSymbleSize;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm2 *Form2;
//---------------------------------------------------------------------------
#endif
